package com.zbkj.front.controller;

import com.zbkj.common.response.CommonResult;
import com.zbkj.common.response.file.FileTypeResponse;
import com.zbkj.front.service.IFileHandleService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("api/front/file")
@Api(tags = "服务端-文件管理")
public class FileController {

    @Autowired
    private IFileHandleService fileHandleService;



    /**
     * 客户端文件类型列表
     * @return
     */
    @GetMapping("/fileTypeList")
    public CommonResult<List<FileTypeResponse>> adminFileTypeList() {
        return CommonResult.success(fileHandleService.fileTypeList());
    }

}
